import xlwt
'''
workbook = xlwt.Workbook(encoding='utf-8')  # 创建workbook对象
worksheet = workbook.add_sheet('sheet1')  # 创建工作表
worksheet.write(0, 0, 'hello')
worksheet.write(0, 1, 'hello11')
worksheet.write(1, 0, 'hello22')
workbook.save('student.xls')
'''
workbook = xlwt.Workbook(encoding='utf-8')
worksheet = workbook.add_sheet('sheet1')
for i in range(0, 9):
    for j in range(0, i+1):
        worksheet.write(i, j, f"{j+1} * {i+1} = {(j+1) * (i+1)}")
        j += 1
    i += 1
workbook.save('99.xls')


